package DARCOShared.responses;

public class ChangeOwnershipResponse implements ResponseBase, java.io.Serializable {
	private static final long serialVersionUID = 1L;
	
	public boolean error;
	public String errorMessage;
	
	public GetCardInfoResponse newCardInfo;
	
	public ChangeOwnershipResponse(GetCardInfoResponse r){
		newCardInfo = r;
		error = false;
	}
	
	public ChangeOwnershipResponse(String errorMessage){
		error = true;
		this.errorMessage = errorMessage;
	}
	
	@Override
	public ResponseType getResponseType() {
		return ResponseType.ChangeOwnership;
	}

}
